package com.cloud.force.api.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.force.api.command.transit.TransitRequest;
import com.cloud.force.api.command.transit.TransitResponse;
import com.cloud.force.api.handler.Request;
import com.cloud.force.api.handler.Response;
import com.cloud.force.api.service.TaskListExecuteService;
import com.cloud.force.common.result.Quokka;

@RestController
@RequestMapping("force/api/task/")
public class TaskListExecuteController {

	@Autowired
	private TaskListExecuteService taskListExecuteService;

	@RequestMapping("execute")
	public Quokka handler(@RequestBody String param) {
		Request req = new TransitRequest();
		Response resp = new TransitResponse();
		taskListExecuteService.execute(req, resp);
		return new Quokka(true, resp);
	}

}
